cmake_minimum_required(VERSION 3.10)
project(MyProject)

# 设置C++标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 包含目录
include_directories(include)

# 添加生产代码
add_library(math_operations src/math_operations.cpp)
add_library(string_operations src/string_operations.cpp)
add_library(vector_operations src/vector_operations.cpp)
add_executable(my_project main.cpp)
target_link_libraries(my_project math_operations string_operations vector_operations)

# 查找Boost库
find_package(Boost REQUIRED COMPONENTS unit_test_framework)

# 添加测试代码
add_executable(run_tests tests/test_main.cpp tests/test_math_operations.cpp tests/test_string_operations.cpp tests/test_vector_operations.cpp)
target_link_libraries(run_tests Boost::unit_test_framework math_operations string_operations vector_operations)
